package cn.zhuo.knowledge.util.hutool.net.url;

import cn.hutool.core.util.URLUtil;

/**
 * <p>
 *
 * @author z2huo
 */
class HutoolUrlTest {

    /**
     * 前端将 + 解码还是 +
     */
    public static void main(String[] args) {
        System.out.println(URLUtil.encode(" "));
        System.out.println(URLUtil.encode("+"));

        System.out.println(URLUtil.decode(" ") + "===");
        System.out.println(URLUtil.decode("+") + "===");
        System.out.println(URLUtil.decode("%20") + "===");
        System.out.println(URLUtil.decode("%2B") + "===");
    }
}
